package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IMiguVideoRetentConfigDAO;
import org.jsbd.boss.domian.MiguVideoRetentConfigBean;
import org.springframework.stereotype.Repository;

@Repository("miguVideoRetentConfigDao")
public class MiguVideoRetentConfigDAOImpl extends CrackBaseDao implements IMiguVideoRetentConfigDAO {

	@Override
	public List<MiguVideoRetentConfigBean> getRetentBymarkforPage(Integer miguVideoId) {
		return super.queryForList("qy_migu_video_retent_config.GET_RETENT_BY_MARK", miguVideoId);
	}

	@Override
	public void saveRetent(List<MiguVideoRetentConfigBean> list) {
		super.batchInsert("qy_migu_video_retent_config.INSERT_RETENT", list);
	}

	@Override
	public void deleteRetentBatch(MiguVideoRetentConfigBean mvrcb) {
		super.delete("qy_migu_video_retent_config.DELETE", mvrcb);
	}

	@Override
	public void deleteByMiguVideoConfig(Integer id) {
		super.delete("qy_migu_video_retent_config.DELETE_BY_MIGU_VIDEO_CONFIG", id);
	}

}
